package com.zhang.redis.aspect;

import java.lang.annotation.*;

/**
 * 系统日志
 *
 * @author zfj
 * @date 2023/12/15
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface RedisLock {

    String key() default "default";
    /**
     * 当time存在值，则覆盖waitTime和leaseTime的null值
     * */
    long time() default 10;
    long waitTime() default 0;
    long leaseTime() default 0;

}

